package com.jming.yygh.user.client;

import com.jming.yygh.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author jming
 * @version 0.0.1
 * @date 2021/05/14
 */
@Repository
@FeignClient(value = "service-user")
public interface PatientFeignClient {

    /**
     * 根据id获取就诊人订单信息
     * @param id
     * @return Patient
     */
    @GetMapping("/api/user/patient/inner/get/{id}")
    Patient getPatientOrder(@PathVariable("id") Long id);

}
